package com.eonmind.user.contract.api;

import com.eonmind.common.contract.constants.ServiceConstant;
import com.eonmind.common.contract.data.response.ResponseEntity;
import com.eonmind.user.contract.dto.UserInfoData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户 对外接口
 *
 * @restApi
 */
@FeignClient(name = ServiceConstant.EON_MIND_USER_SERVICE)
public interface UserFeignService {

    /**
     * 根据用户ID查询用户信息
     *
     * @param userId
     * @return
     */
    @GetMapping("/user-api/user/getUserInfoById")
    ResponseEntity<UserInfoData> queryUserInfoById(@RequestParam(name = "userId") Long userId);
}